<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<rapid:override name="frame-header-style">
	<style>
</style>
</rapid:override>
<rapid:override name="frame-content">
	<div style="padding: 15px;">
		<blockquote class="layui-elem-quote">
			<span class="layui-breadcrumb" lay-separator="/"> <a
				href="user/index">首页</a> <a><cite>评论列表</cite></a>
			</span>
		</blockquote>
		<div class="layui-tab layui-tab-card">
			<table class="layui-table" lay-even lay-skin="nob">
				<colgroup>
					<col width="100">
					<col width="300">
					<col width=200">
					<col width="150">
					<col width="50">
				</colgroup>
				<thead>
					<tr>
						<th>作者</th>
						<th>评论内容</th>
						<th>回复至</th>
						<th>提交于</th>
						<th>ID</th>
					</tr>
				</thead>
				<tbody>

					<c:forEach var="c" items="${pageInfo.list }">
						<tr>
							<td><img src="${c.commentAuthorAvatar}" width="64px">
								<strong>${c.commentAuthorName}</strong> | ${c.commentAuthorUrl}
								| ${c.commentAuthorEmail} | ${c.commentIp}</td>
							<td class="dashboard-comment-wrap"><c:if
									test="${c.commentPid!=0}">
									<span class="at">@ </span>
									<a href="${c.commentAuthorUrl}">${c.commentPname}</a>
								</c:if> ${c.commentContent}
								<div class="row-actions">
									<span class=""> <a href="comment/reply/${c.commentId}">
											回复 </a></span> <span class=""> | <a
										href="/admin/comment/edit/${c.commentId}">编辑</a>
									</span> <span class=""> | <a href="comment/delete/${c.commentId}"
										onclick="return confirm('确认要删除吗')">删除</a>
									</span>
								</div></td>
							<td><a href="article/${c.article.articleId}" target="_blank">${c.article.articleTitle}</a>
							</td>
							<td><fmt:formatDate value="${c.commentCreateTime}"
									pattern="yyyy年MM月dd日 HH:dd:ss" /></td>
							<td>${c.commentId}</td>
						</tr>
					</c:forEach>
				</tbody>

			</table>
		</div>
	</div>
		<nav class="navigation pagination" role="navigation">
			<div class="nav-links">
				<%@ include file="../page.jsp"%>
			</div>
		</nav>
</rapid:override>
<%@ include file="../framework.jsp"%>